<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('read_substrates', function (Blueprint $table) {
            $table->id();
            $table->unsignedBigInteger('company_id')->default(0)->index();
            $table->unsignedBigInteger('project_id')->default(0)->index();
            $table->unsignedBigInteger('admin_id')->default(0)->index();
            $table->string('material')->nullable()->comment('饰面材料');
            $table->string('wall')->nullable()->comment('墙体类型');
            $table->string('brief')->nullable()->comment('做法描述');
            $table->string('skeleton')->nullable()->comment('钢骨架间距');
            $table->string('surface')->nullable()->comment('完成面尺寸');
            $table->string('other')->nullable()->comment('同标段其他装饰单位做法描述');
            $table->string('blueprint')->nullable()->comment('施工蓝图描述');
            $table->string('remarks')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('read_substrates');
    }
};
